import { getContractTemplateUrlApi } from '@/api/template/contractTemplate'

export default function useSortData() {
  const showPdfDialogRef = ref()
  // 查看模板
  const viewTemplate = async row => {
    const res = await getContractTemplateUrlApi(row.templateCode)
    console.log('查看模板', res)
    showPdfDialogRef.value.show(res)
  }
  return {
    showPdfDialogRef,
    viewTemplate
  }
}
